package com.wxq.blog.controller;

import com.wxq.blog.common.aop.LogAnnotation;
import com.wxq.blog.service.TagService;
import com.wxq.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

public class TagsController {
    @Autowired
    private TagService tagService;
    @GetMapping
    @LogAnnotation(module = "标签",operation = "查询文章所有标签")//加入aop切面输出日志
    public Result findAll(){
        /**
         * 查询所有的文章标签
         * @return
         */
        return tagService.findAll();
    }

}
